<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;

class PilunController extends Controller
{
    //
    public function index(Request $request)
    {
    	// dd($request);
        $list = $request->only("goodsid","userid","content");
        // dd($list);
        session(["pl"=>$list]);
        $list['time'] = time();
        $data = DB::table("comments")->insertGetId($list);
        return redirect("/home/purxiaomi5splus?goodsid=7");
    	
    }
}
